<template>
  <van-nav-bar
    left-arrow
    @click-left="onClickLeft"
    title="我的订单"
    :border="false"
  />
  <van-tabs v-model:active="active">
    <van-tab title="全部">全部</van-tab>
    <van-tab title="待付款">待付款</van-tab>
    <van-tab title="待发货">待发货</van-tab>
    <van-tab title="待收货">待收货</van-tab>
    <van-tab title="待评价">待评价</van-tab>
  </van-tabs>
  <van-empty description="哎呦,还没有任何哦！" />
</template>
<script setup lang="ts">
import { onMounted, ref, toRaw } from "vue";
import { useRouter,useRoute } from "vue-router";
const route = useRoute()
const router = useRouter();
let active:any = ref(0)
function onClickLeft() {
  router.push({
    name: "my",
  });
}
onMounted(()=> {
    let aa:any = route.query.myindex
    active.value = aa - 0
   
})
</script>
<style scoped>
</style>
<style>
.van-icon-arrow-left:before {
  color: gray;
}
</style>

